import request from '@/utils/request'

export const getChannel = () => {
  return request({
    url: '/v1_0/user/channels'
  })
}

export const allChannels = () => {
  return request({
    url: '/v1_0/channels'
  })
}

export const setChannels = data => {
  return request({
    url: '/v1_0/user/channels',
    method: 'put',
    data
  })
}
